Helm으로 Kibana 설치하기
Elasticsearch 레포지토리 추가 및 차트 다운로드
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm fetch bitnami/kibana
$ tar xzvf kibana-10.4.5.tgz
values.yaml 수정
$ cd kibana
$ sudo vi values.yaml
Kibana 설정
...
service:
type: ClusterIP # NodePort 로 수정
nodePorts:
http: 32002
...
elasticsearch
hosts: [] # ["도메인명"]
port: 30002
security:
enabled: false # true로 수정
kibanaPassword: "" # 키바다 패스워드 입력
...
Kibana 설치
kibana 설치 전, elasticsearch-master-0 파드에 접근하여 아래 명령어를 통해 kibana_system 계정의 비밀번호를 위에서 설정한
kibanaPassword와 동일하게 입력하자
$ /opt/bitnami/elasticsearch/bin/elasticsearch-setup-passwords interactive
그리고 나서 아래 명령어로 Kibana를 띄우자
$ kubectl create namespace kibana
$ helm install kibana -f values.yaml . -n kibana
$ helm upgrade kibana -f values.yaml . -n kibana
NAME: kibana
LAST DEPLOYED: Tue Aug 22 09:36:32 2023
NAMESPACE: kibana
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: kibana
CHART VERSION: 10.4.5
APP VERSION: 8.8.2
** Please be patient while the chart is being deployed **
1. Get the application URL by running these commands:
export NODE_PORT=$(kubectl get --namespace kibana -o jsonpath="{.spec.ports[0].nodePort}" services kibana)
export NODE_IP=$(kubectl get nodes --namespace kibana -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
WARNING: Kibana is externally accessible from the cluster but the dashboard does not contain authentication mechanisms. Make sure you follow the authentication guidelines in your Elastic stack.
+info https://www.elastic.co/guide/en/elasticsearch/reference/current/setting-up-authentication.html
Kibana 접속
Kibana 삭제
$ helm delete -n kibana kibana